<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/22
 * Time: 15:50
 */

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Menu extends Model
{
    protected $table = "menu";
    public $timestamps = true;
    protected $fillable=['parent_id','order','title','icon','uri'];

    protected function getDateFormat()
    {
        return date("Y-m-d,H:i:s");
    }

    protected function asDateTime($value)
    {
        return $value;
    }

}